﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public class Product : Resource
    {
        public int Quantity { get; set; }
        public virtual ICollection<ProductCategory> Categories { get; set; }
    }

    public sealed class ProductConfiguration : EntityTypeConfiguration<Product>
    {
        public ProductConfiguration()
        {
            HasMany(p => p.Categories).WithMany();
            
        }
    }
}
